package com.ts.api.module.api.convert.org.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 *  API机构对接,掩码返回实体
 *
 *  @author Pan
 */
@Data
public class RespOrgPhoneMd5DataExchange {

    /** 是否业务判断成功 */
    @JSONField(serialize = false)
    private Boolean hasBizSuc = false;

    /**
     *  构建失败
     *
     *  @return RespOrgPhoneMd5Apply
     */
    public static RespOrgPhoneMd5DataExchange ofFail() {
        RespOrgPhoneMd5DataExchange resp = new RespOrgPhoneMd5DataExchange();
        resp.setHasBizSuc(false);
        return resp;
    }

    /**
     *  构建成功
     *
     *  @return RespOrgPhoneMd5DataExchange
     */
    public static RespOrgPhoneMd5DataExchange ofSuc() {
        RespOrgPhoneMd5DataExchange resp = new RespOrgPhoneMd5DataExchange();
        resp.setHasBizSuc(true);
        return resp;
    }
}
